<?php
defined('_JEXEC') or die;

// disable core styles to avoid bs conflict
OC_Util::$core_styles = array();

if ( isDevMode() ) {
   OCP\Util::addStyle('calendar', 'reject');
   OCP\Util::addscript('calendar', 'reject');
} else {
   OCP\Util::addStyle('static', 'clndr.reject');
   OCP\Util::addScript('static', 'apps/calendar.reject.min');
}
$item = $_['userofferinfo'];
?>
<form action="<?php echo OC_Helper::linkToRoute("calendar_comfirmreject");?>" method="post" name="rejectofferform" id="rejectofferform">
   <div class="row-fluid hr_oneconn_margin">
      <div class="span12 oneconn_box">
         <div class="lgrg_form">
            <div class="hr_inputinfo">
               <div class="hr_newstip">
                  <span><?php echo !empty($item['jobseekername']) ? $item['jobseekername'].'，' : '';?></span>您好！
                  <br/>
                  您确认放弃此职位的Offer吗？
               </div>
               <div style="margin-top:10px" class="hr_controls">
                  <input type="button" id="reject_offer_confirm" value="确 认" class="ppp_bluebtn">
                  <input type="hidden" value="<?php echo !empty($item['token']) ? $item['token'] : 0;?>" name="token">
                  <input type="hidden" value="<?php echo !empty($item['share_with']) ? $item['share_with'] : 0;?>" name="sharewith">
                  <input type="hidden" id="requesttoken" value="<?=$_['requesttoken']?>" name="requesttoken">
                  &nbsp;<span class="server"></span>
                  <a class="closewin" href="about:blank">取消，关闭页面</a>
               </div>
            </div>
         </div>
      </div>
   </div>

   <div class="modal hide fade rejectconfirmdialog" id="rejectofferconfirmdialog">
   <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h3>&nbsp;</h3>
   </div>
   <div class="modal-body">
      <p class="yahei">确认放弃此入职Offer？</p>
      <div class="btnaligncenter medium">
         <input class="ppp_bluebtn" type="submit" value="确 认" id="reject_offer_submit"/>
      </div>
   </div>
</div>
</form>